<div class="expenditureTypes form">
<?php echo $this->Form->create('ExpenditureType');?>
	<fieldset>
 		<legend><?php __('Add Expenditure Type'); ?></legend>
	<?php
		echo $this->Form->input('description');
		echo $this->Form->input('expenditure_type_source', array('empty' => 'Select'));
		
		$options = array('url' => 'update_select','update' => 'ExpenditureTypeExpenditureTypePeriodicity');		
		echo $ajax->observeField('ExpenditureTypeExpenditureTypeSource', $options);				
		
		echo $this->Form->input('expenditure_type_periodicity');
		
		echo $ajax->div("div_for_periodic");
		echo $ajax->divEnd("div_for_periodic");
		
		$options = array('url' => 'update_select', 'update' => 'div_for_periodic');
		echo $ajax->observeField('ExpenditureTypeExpenditureTypePeriodicity',$options); 
		
		echo $this->Form->hidden('created_by');
		echo $this->Form->hidden('updated_by');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
        	<li><?php echo $this->Html->link(__('List Expenditure Types', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Periodic Expenditure Types', true), array('controller' => 'periodic_expenditure_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Expenditure Distributions', true), array('controller' => 'expenditure_distributions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Expenditures', true), array('controller' => 'expenditures', 'action' => 'index')); ?> </li>
	</ul>
</div>